/**
 * Styling for webpagemaker editor modal dialogs
 */

.modal-overlay {
  z-index: 10000;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.2); 
  height: 100%; 
  width: 100%;
}

.thimble-error {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 200px;
  margin-top: -125px;
  margin-left: -200px;
  background-color: white;
}

.thimble-error .thimble-title {
  position: relative;
  top: 0px;
  left: 0px;
  padding-top: 0.5em;
  height: 1.5em;
  border: 1px solid #C0C0C0;
}

.thimble-modal-menu {
  position: absolute;
  margin-top: 22px;
  margin-left: 18px;
  width: 425px;
  height: 145px;
  border: 1px solid #C0C0C0;
}

.thimble-question-bar {
  background-color: #505050;
}

.thimble-question-bar .thimble-title {
  color: white;
  background: inherit;
  font-size: 18px;
  text-align: center;
}

.thimble-grey-bar {
  background-color: #F7F7F7;
}

.thimble-branding {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  top: -15px;
  left: 365px;
  background-color: inherit;

  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg); 
  
  border: 1px solid #C0C0C0;
  border-width: 1px 0 0 1px;
  margin-bottom: 1.5em;
}

/* make the top padding 'disappear' for greybar content */
.thimble-grey-bar .thimble-branding {
  position: absolute;
}

.modal-close-button {
  background-image: url("../img/modal-close-button.png");
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  height: 40px;
  position: absolute;
  right: 25px;
  top: 5px;
  width: 40px;
  z-index: 3;
}

.thimble-grey-bar .modal-close-button {
  top: 0;
}

.thimble-menu-content {
  background-color: white;
  width: 100%;
}

.thimble-title {
  position: relative;
  top: -2em;
  text-align: left;
  padding-left: 5px;

  font-weight: bold;
  font-size: 14px;

  background-color: #3A84FC;
  
  color: white;
}

.thimble-grey-bar .thimble-title {
  top: 0;
  text-align: left;
  padding: 1em 1em 0.5em 0;
  padding-left: 0;
}


.thimble-grey-bar .thimble-title:before {
  content: "▾ ";
  padding-left: 1em;
}

.confirm-dialog .thimble-title:before {
  content: "" !important;
}

.collapsed .thimble-title {
  color: white;
  background-color: gray;
  vertical-align: middle;
  cursor: pointer;
}

.collapsed .thimble-title:hover {
  background-color: #505050;
}

.thimble-url-box {
  background-color: #FFFFFF;
  color: blue;
  height: 25px;
  margin: 10px auto 1em;
  padding-left: 1em;
  padding-top: 5px;
  width: 370px;
  overflow: hidden;
}

.thimble-url-box a {
  color: #50A5F8;
}

.thimble-url-box a:hover {
  color: blue;
}

.thimble-additionals {
  color: #222;
  text-align: left;
  position: relative;
  padding: 2px 10px;
  font-size: 14px;
}

.thimble-additionals ul {
  list-style: none;
  text-align: center;
  margin: 1em 0;
  padding: 0;
}

.thimble-additionals ul li {
  display: table-cell;
  vertical-align: middle;
  padding: 0 5px;
}

.collapsed .thimble-title:before {
  content: "▸ ";
}

.accordion-content {
  overflow: hidden;
  -moz-transition: height 0.5s;
  -webkit-transition: height 0.5s;
  -o-transition: height 0.5s;
}

.collapsed .accordion-content {
  height: 0;
}

div.accordion:not(.collapsed) .accordion-content {
  height: 50px;
}

.thimble-grey-bar .thimble-additionals {
  padding: 0 1em;
}

.thimble-additionals a {
  text-decoration: none;
  color: #3F9A31;
}

.thimble-additionals a:hover {
  color: #236819;
}

.confirm-dialog .public-warning {
  text-align: center;
  padding-bottom: 1em;
}

.confirm-dialog .error-warning,
.confirm-dialog .development-note {
  display: none;
}

html.deployment-type-development .confirm-dialog .development-note {
  display: block;
  padding-bottom: 1em;
  color: gray;
  font-style: italic;
}

.confirm-dialog.has-errors .error-warning {
  display: block;
  padding-bottom: 1em;
  color: red;
}

.confirmation-buttons {
  text-align: center;
  margin-top: 1em;
  margin-bottom: 0.75em;
  height: 2em;
}

.confirmation-button {
  background-repeat: no-repeat;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-family: Arial;
  font-weight: 700;
  font-size: 14px;
  height: 30px;
  padding-top: 7px;
  text-indent: -20px;
  width: 60px;
  margin: 0 1em;
  opacity: 0.75;
  -moz-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
}

.confirmation-button:hover {
  opacity: 1.0;
}

.confirmation-button.yes-button {
  background-image: url("../img/yes.png");
} 

.confirmation-button.no-button {
  background-image: url("../img/no.png");
}

.accordion {
  background-color:inherit;
}

.accordion + .accordion {
  border-top: 1px solid #D6D6D6;
}

.publish-dialog.is-publishing .thimble-url-box {
  background-image: url(../img/throbber.gif);
  background-repeat: no-repeat;
  background-position: 8px 8px;
}

.publish-dialog.is-publishing .thimble-url-box a {
  font-size: 0;
}

.publish-dialog.is-publishing .share-result .thimble-additionals {
  font-size: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/throbber.gif);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
